<?php
namespace app\mobile\controller;

class Index extends Common 
{
   public function index() {

		/**
		 * 焦点图
		 */
		$slide = M("Slide")->where(array('type' => 2))->order('sort desc')->limit(4)->select();
		$this->assign('slide', $slide);

		/**
		 * 特惠旅游产品
		 */
		$tours = D("tours/tours");
		$where = array();
		$where['isnotshow'] = 0;
		$where['ischecked'] = 1;
		$where['isdelete'] = 0;
		$where['isindex'] = 1;
		$tehui = $tours->cache()->field(true)->where($where)->order("dateline desc")->limit(7)->select();
		$this->assign('tehui', $tehui);

		//SEO优化，生成TITLE,K,D
		$this->assign('seo_title', C('site.index_seotitle'));
		$this->assign('seo_keywords', C('site.index_seokeywords'));
		$this->assign('seo_description', C('site.index_seodescription'));

		
		return $this->fetch();
	}
}
